package cn.zbacm.api.user.repository;

import cn.zbacm.api.user.entity.User;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface UserRepository extends PagingAndSortingRepository<User, Integer> {
  Optional<User> findByPhoneOrUsername(String phoneOrUsername1, String phoneOrUsername2);
}
